<?php /* Smarty version 2.6.26, created on 2009-09-13 14:49:15
         compiled from index.tpl.wml */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('insert', 'header', 'index.tpl.wml', 1, false),)), $this); ?>
<?php require_once(SMARTY_CORE_DIR . 'core.run_insert_handler.php');
echo smarty_core_run_insert_handler(array('args' => array('name' => 'header', 'content' => "Content-Type: text/vnd.wap.wml")), $this); ?>

<?php echo '<?xml'; ?>
 version="1.0"<?php echo '?>'; ?>

<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN" "http://www.wapforum.org/DTD/wml13.dtd">

<wml>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "template_menu.wml", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php  $Constant888 = Constant888::instance();  ?>
<card id="MienBac">
  	
	
	<p align="center"> <b>Ket qua xo so thu do</b> </p>
	<!--se phai doc thoi diem refresh cua ket qua, so sanh roi viet ra-->
	<p align="center"> <?php  echo $Constant888 -> value("SEPARATED_LINE");  ?> </p>
	<p> <?php  
			try {
				$noresult = false;
				$notCompletedResult = false;
				$todayResult_MB = new TodayResult(Config888::getValue('MB_Today'));
				echo $todayResult_MB -> getDate();
			}
			catch (NoResultFileException $err) {							
				$noresult = true;
			} 
			catch (MyException $err) {
				$notCompletedResult = true;
			}
		 ?> </p>
	
	<p>	
	<anchor>
		<go href='index.php'/>
		Cap nhat KQ
	</anchor>
	</p>
		
		<?php 
		die("Solve problem: if the result file is being processed -> show the yesterday file ".__FILE__." line: ".__LINE__);		
		if ($noresult ) {			
			echo $Constant888->value("NO_RESULT_FILE_STRING");
		}
		else 
		if ($notCompletedResult) {						
		} else {
			$todayResult_MB->showResults_WAP();
		}
		 ?>
	
	<p align="center"> 
	<?php  
	
	echo $Constant888 -> value("SEPARATED_LINE"); 
	 ?></p>	
	<p> Soan <b> CAU </b> gui <b>8552</b> de nhan 3 cau ngon nhat !  </p> <!--  Telephony : SMS - CAU 8552 -->
	<p> DT ho tro : 1900 56 1219</p> <!--  Telephony: goi 1900561219--></card>

</wml>